package com.ha.system.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ha.system.order.mapper.HaOrderInfo2Mapper;
import com.ha.system.order.domain.HaOrderInfo2;
import com.ha.system.order.service.IHaOrderInfo2Service;
import com.ha.common.core.text.Convert;

/**
 * 订单信息Service业务层处理
 * 
 * @author admin
 * @date 2021-03-16
 */
@Service
public class HaOrderInfo2ServiceImpl implements IHaOrderInfo2Service 
{
    @Autowired
    private HaOrderInfo2Mapper haOrderInfo2Mapper;

    /**
     * 查询订单信息
     * 
     * @param id 订单信息ID
     * @return 订单信息
     */
    @Override
    public HaOrderInfo2 selectHaOrderInfo2ById(Long id)
    {
        return haOrderInfo2Mapper.selectHaOrderInfo2ById(id);
    }

    /**
     * 查询订单信息列表
     * 
     * @param haOrderInfo2 订单信息
     * @return 订单信息
     */
    @Override
    public List<HaOrderInfo2> selectHaOrderInfo2List(HaOrderInfo2 haOrderInfo2)
    {
        return haOrderInfo2Mapper.selectHaOrderInfo2List(haOrderInfo2);
    }

    /**
     * 新增订单信息
     * 
     * @param haOrderInfo2 订单信息
     * @return 结果
     */
    @Override
    public int insertHaOrderInfo2(HaOrderInfo2 haOrderInfo2)
    {
        return haOrderInfo2Mapper.insertHaOrderInfo2(haOrderInfo2);
    }

    /**
     * 修改订单信息
     * 
     * @param haOrderInfo2 订单信息
     * @return 结果
     */
    @Override
    public int updateHaOrderInfo2(HaOrderInfo2 haOrderInfo2)
    {
        return haOrderInfo2Mapper.updateHaOrderInfo2(haOrderInfo2);
    }

    /**
     * 删除订单信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteHaOrderInfo2ByIds(String ids)
    {
        return haOrderInfo2Mapper.deleteHaOrderInfo2ByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除订单信息信息
     * 
     * @param id 订单信息ID
     * @return 结果
     */
    @Override
    public int deleteHaOrderInfo2ById(Long id)
    {
        return haOrderInfo2Mapper.deleteHaOrderInfo2ById(id);
    }
}
